package MyStudy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class exaam {
	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger(exaam.class);
		//日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL，如果设置为WARN，则低于WARN的信息都不会输出
		logger.trace("汉字ignored.");
		logger.debug("汉字start process...");
		logger.info("汉字start process...");
		logger.warn("汉字memory is running out...");
		logger.error("汉字process will be terminated...");
		int score = 99;
		//p.setScore(score);
		
		logger.error("Set score {} for Person {} ok.", score, score);
	}
}
